﻿using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category0
{
  public class MT032 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagDefinition U0002;
    private static SwiftTagSubItemDefinition U0003;

    [Description("Lt-Code")]
    public Tag303 LTCode_303
    {
      get
      {
        return new Tag303((SwiftElement) this, 0, (SwiftDefinitionElement) MT032.U0002);
      }
    }

    [Description("Lt-Code")]
    public Tag303 Tag303_LTCode
    {
      get
      {
        return this.LTCode_303;
      }
    }

    public MT032()
      : base(true)
    {
    }

    public MT032(SwiftMessage message)
      : base(message)
    {
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT032.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT032.MessageDefinition = new SwiftMessageDefinition("MT032", "Delivery Subset Status Request");
      MT032.U0002 = new SwiftTagDefinition("LTCode_303", "Lt-Code");
      MT032.U0002.TagName = "{303:";
      MT032.U0003 = new SwiftTagSubItemDefinition("LTCode", "Lt-Code");
      MT032.U0002.Elements.Add((SwiftDefinitionElement) MT032.U0003);
      MT032.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT032.U0002);
    }
  }
}
